-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Publish via workflow with trusted publishing #3915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| run: npm publish | ||
|
|
||
| - name: Push commit and tag | ||
| run: git push origin main --follow-tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have to double-check our branch rules, we need to allow directly pushing to main.
| run: git push origin main --follow-tags | ||
|
|
||
| - name: Create GitHub Release | ||
| run: gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amanmahajan7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Have we restricted token access?
https://docs.npmjs.com/trusted-publishers#recommended-restrict-token-access-when-using-trusted-publishers
Will do so after we confirm this process works |

https://docs.npmjs.com/trusted-publishers